﻿<UserControl x:Class="LightingPlatform.View.Level5.LightingView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <controlsToolkit:BusyIndicator x:Name="busy">
        <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"  BorderBrush="Transparent" BorderThickness="0" IsTabStop="False" TabNavigation="Once" Padding="0" Margin="0">
            <Grid x:Name="LayoutRoot" Margin="20, 20, 0 ,0">
                <Grid Grid.Row="21" Grid.ColumnSpan="7">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="120"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="120"/>
                        <RowDefinition Height="60"/>
                    </Grid.RowDefinitions>

                    <Viewbox Stretch="Uniform" Height="100" Width="100" VerticalAlignment="Center" HorizontalAlignment="Center" >
                        <Image Source="{Binding Picture.FacadeView}"/>
                    </Viewbox>

                    <Viewbox Stretch="Uniform" Height="100" Width="100" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="1">
                        <Image Source="{Binding Picture.SizeView}"/>
                    </Viewbox>

                    <Viewbox Stretch="Uniform" Height="100" Width="100" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="2">
                        <Image Source="{Binding Picture.Grading1View}"/>
                    </Viewbox>

                    <Viewbox Stretch="Uniform" Height="100" Width="100" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="3">
                        <Image Source="{Binding Picture.LiveView}"/>
                    </Viewbox>

                    <Button Width="100" Height="23" Foreground="Gray" VerticalAlignment="Top" HorizontalAlignment="Center" FontSize="13" Content="灯具图片上传" Grid.Row="1" x:Name="FacadeBtn"/>
                    <Button Width="100" Height="23" Foreground="Gray" VerticalAlignment="Top" HorizontalAlignment="Center" FontSize="13" Content="灯具尺寸上传" Grid.Row="1" Grid.Column="1" x:Name="SizeBtn"/>
                    <Button Width="100" Height="23" Foreground="Gray" VerticalAlignment="Top" HorizontalAlignment="Center" FontSize="13" Content="灯具配光上传" Grid.Row="1" Grid.Column="2" x:Name="GradingBtn"/>
                    <Button Width="100" Height="23" Foreground="Gray" VerticalAlignment="Top" HorizontalAlignment="Center" FontSize="13" Content="实际案例上传" Grid.Row="1" Grid.Column="3" x:Name="LiveBtn"/>

                    <StackPanel Grid.Row="1" Grid.Column="4" VerticalAlignment="Top" HorizontalAlignment="Right">
                        <Button Content="确    认" VerticalAlignment="Center" HorizontalAlignment="Right" x:Name="OKBtn" Width="75" Height="23"/>
                        <Button Margin="0, 5, 0, 0" Content="取    消" VerticalAlignment="Center" HorizontalAlignment="Right" x:Name="CancelBtn" Width="75" Height="23"/>
                    </StackPanel>
                </Grid>
            </Grid>
        </ScrollViewer>
    </controlsToolkit:BusyIndicator>
</UserControl>
